[2/5] x86/cpu: Add 'table' argument to cpu_matches()
authorMark Gross <mgross@linux.intel.com>
Thu, 16 Apr 2020 15:32:42 +0000 (17:32 +0200)
committerBen Hutchings <benh@debian.org>
Tue, 9 Jun 2020 17:50:00 +0000 (18:50 +0100)
commit08b0b99097e190565f5cdd1b6ab762aa60a19421
tree5d8ed663ad62a48ea75ed0141016968ee37b0273
parent8f176fc9d8da675f70dfc9394ad8171d8492ec9e
[2/5] x86/cpu: Add 'table' argument to cpu_matches()

Origin: https://git.kernel.org/linus/93920f61c2ad7edb01e63323832585796af75fc9
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2020-0543

To make cpu_matches() reusable for other matching tables, have it take a
pointer to a x86_cpu_id table as an argument.

 [ bp: Flip arguments order. ]

Signed-off-by: Mark Gross <mgross@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Gbp-Pq: Topic bugfix/x86/srbds
Gbp-Pq: Name 0002-x86-cpu-Add-table-argument-to-cpu_matches.patch
arch/x86/kernel/cpu/common.c